<?php
require_once("auth/sso.php");
$sso = new SingleSignOn_Broker();
$users = $sso->getInfo();

if (!$users) {
    header("Location:login.php", true, 307);
    exit;
}
 //$users["identity"]=2;
$user_active = $users["identity"];
require_once('user_assets.php');
$features = $privilege->getFeatures($user->role_id,1);

require_once('app_common.php');
?>
<!DOCTYPE html>
<html lang="en">
   <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Autogator</title>

		
              <script type="text/javascript" src="lib/jquery-1.7.1.min.js"></script>	
               <script type="text/javascript" src="lib/jquery.ui.core.js"></script>
			   <script type="text/javascript" src="lib/bootbox.min.js"></script>
		<script type="text/javascript" src="lib/jquery.ui.widget.js"></script> 

		<script type="text/javascript" src="lib/objs-2.1.1-min.js"></script>
       
		<script type="text/javascript" src="lib/puremvc-objs-2.0-min.js"></script>
     
		<script type="text/javascript" src="src/abc/MediatorNames.js"></script>
        <!-- =============================================================================== -->
        <!-- ================================== Home Page Header =========================== -->
        <!-- =============================================================================== -->
		<script type="text/javascript" src="src/abc/NotificationNames.js"></script>
        <!-- =============================================================================== -->
        <!-- ================================== Home Page Header =========================== -->
        <!-- =============================================================================== -->
		<script type="text/javascript" src="src/abc/ProxyNames.js"></script>
        <!-- =============================================================================== -->
        <!-- ================================== Home Page Header =========================== -->
        <!-- =============================================================================== -->
        <script type="text/javascript" src="src/abc/AppConstant.js"></script>
        
       	<!-- =============================================================================== -->
        <!-- ================================== Home Page Header =========================== -->
        <!-- =============================================================================== -->
		<script type="text/javascript" src="src/controller/PrepModelCommand.js"></script>
        <!-- =============================================================================== -->
        <!-- ================================== Home Page Header =========================== -->
        <!-- =============================================================================== -->
		<script type="text/javascript" src="src/controller/PrepViewCommand.js"></script>
        <!-- =============================================================================== -->
        <!-- ================================== Home Page Header =========================== -->
        <!-- =============================================================================== -->
		<script type="text/javascript" src="src/controller/StartupCommand.js"></script>
       <script type="text/javascript" src="src/model/AdminSummaryProxy.js"></script>
       <script type="text/javascript" src="src/model/MakeProxy.js"></script>
       <script type="text/javascript" src="src/model/ModelProxy.js"></script>
       <script type="text/javascript" src="src/model/SearchSortProxy.js"></script>
       <script type="text/javascript" src="src/model/StatusProxy.js"></script>
       <script type="text/javascript" src="src/model/AddresourceProxy.js"></script>
       <script type="text/javascript" src="src/model/UserProxy.js"></script>
       <script type="text/javascript" src="src/model/CompanyProxy.js"></script>
	    <script type="text/javascript" src="src/model/vo/UserVO.js"></script>
	    <script type="text/javascript" src="src/model/vo/CompanyVO.js"></script>
        <!-- =============================================================================== -->
        <!-- ================================== Home Page Header =========================== -->
        <!-- =============================================================================== -->
	    <script type="text/javascript" src="src/view/components/UiComponent.js"></script>
		 <script type="text/javascript" src="src/view/Components/HomePage.js"></script>
		 <script type="text/javascript" src="src/view/Components/AdminPage.js"></script>
       <script type="text/javascript" src="src/view/HomePageMediator.js"></script>
       <script type="text/javascript" src="src/view/AdminPageMediator.js"></script>
        <!-- =============================================================================== -->
        <!-- ================================== Home Page Header =========================== -->
        <!-- =============================================================================== -->
		<script type="text/javascript" src="src/ApplicationFacade.js"></script>
     <link href="css/application.css" media="screen" rel="stylesheet" type="text/css">
<!-- <link href="css/datepicker.css" media="screen" rel="stylesheet" type="text/css"> -->
<link href="css/dashboards.css" media="screen" rel="stylesheet" type="text/css">

<script type="text/javascript">
      				
$().ready(function()
 {               
                 	
					$("#datacontent").hide();		
$('.modal').hide();						
					if( document.location.hash )
						document.location.hash = "";
					
					var applicationFacade/*ApplicationFacade*/ = ApplicationFacade.getInstance();
					applicationFacade.startup( $("body") );			   
                                
         }); 
         
    
    
                                       
                            
		</script>
         <script type="text/javascript"> var current_page = "superadmin";</script>    
 <script src="js/bootstrap-twipsy.js"></script>
   <!--  <script src="js/bootstrap-datepicker.js"></script> -->
    <script src="js/bootstrap.min.js"></script>		 
</head>

<body>
   	<?php include_once $header_path; ?>
	<div id="datacontent" style="padding-top:70px;">
		<div class="container">


			<div class="block withsidebar">
				 <?php require_once 'superadminphps/blockhead.php'?>
				<div class="block_content">
					 <?php require_once 'superadminphps/sidebar.php'?>
					 <?php require_once 'superadminphps/sidebarcontent.php'?>

				</div>
				<div class="bendl"></div>
				<div class="bendr"></div>

			</div>

		</div>
	</div>
	
		 <?php require_once 'superadminphps/progress.php'?>
		 <?php require_once 'superadminphps/makepopups.php'?>
		 <?php require_once 'superadminphps/modelpopups.php'?>
		 <?php require_once 'superadminphps/itempopups.php'?>
		 <?php require_once 'superadminphps/userpopup.php'?>
		
			



	

</body>
</html>